home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 4,101 to 4,200
/
aol-file-protocol-4400-4101-to-4200.zip
/
AOLDLs
/
ADV - Articles & Misc
/
Manual for ProDev DDT8_DDT16
/
DDT.MANUAL.bxy
/
DDT.Manual
/
CHAPTER.2
(
.txt
)
< prev
next >
Wrap
AppleWorks Document
|
1993-08-05
|
9KB
|
166 lines
O=====<====<====<====<====<====<====<====<====<====<====<====<====<====<====<===
O=====<====<====<====<====<====<====<====<====<====<====<====<====<====<====<===
CHAPTER 2
GETTING STARTED
FAST START
HThe procedure to follow when using the ProDev DDT might be something as
follows:
The ProDev DDT card must be initialized after powering up the computer. B
@If you are using the DDT16 you may use the Init provided on the L
Jaccompanying disk to automatically initialize the DDT during a GSOS boot. A
?See the instruction provided in the "read.me" file for further
information.
CYou may also initialize the DDT manually by getting into the Apple L
Jmonitor, (from a BASIC prompt type "call -151" or "mtr") and entering the I
Gcommand "Cn00G", where 'n' is the slot number the DDT is installed in. J
HUsing the commands "PR#n", "IN#n", "n<ctrl>P", etc. will also start the ;
DDT but they disable any DOS hooks and should be avoided.
GIf you enter the ProDev DDT via "Cn00G", you can enter "QU" at the DDT (
prompt to return to the Apple monitor.
WINDOWS
After starting the ProDev DDT you will see a windowed 80 column display.
_________________________________________5
| | |5
| | 2 |5
| | |5
| |--------------------|5
| | | | |5
| | | | |5
| 1 | 3 | 4 | |5
| | | | |5
| | | | 5 |5
| | |---------| |5
| |------| | |5
| | | | |5
| | 6 | 7 | |5
| | | | |5
-------------------------------------------
WINDOW #1
HInformation from Tracing, listing, mini-assembler etc., is displayed in K
Ithis window. The flashing cursor that is awaiting your input, also known 3
as the command prompt, is usually in this window.
WINDOW #2
M = STK REA WRI LNG BNK PG2 80S CXR { pseudo register%
MNE MNE MNE ROM 2 OFF OFF ON
KEY BRK TYP SAV TXT MIX HGR 80C ALT { state flags&
93 OUT C02 ON ON OFF OFF OFF OFF
IThe first 2 lines of window 2 contain the current state of the (M)achine D
Bstate pseudo register. M is not really a physical register in the J
Hprocessor, rather it is a pseudo register that is created by the ProDev C
ADDT. The M register is also displayed along with the processor's I
Gregisters when tracing or displaying registers. The Apple IIGS monitor J
Halso contains an M pseudo register which is similar, but not identical, !
to the ProDev DDT's M register.
CThe meaning of the M state register bits from left to right are as
follows:
STK = reflects the state of the ALTZP switch ($C016)5
MNE = main memory AUX = auxiliary memory (*)
REA = reflects the state of the RAMRD switch ($C013)5
MNE = main memory AUX = auxiliary memory (*)
WRI = reflects the state of the RAMWRT switch ($C014)5
MNE = main memory AUX = auxiliary memory (*)
LNG = reflects the state of the language card switch ($C012)8
ROM = Autostart ROM RAM = language card RAM (*)
BNK = reflects the state of the LC bank switch ($C011)*
1 = bank #1 in 2 = bank #2 in (*)
PG2 = reflects the state of the PAGE2 switch ($C01C),
OFF = Page 2 off ON = Page 2 on (*)
80S = reflects the state of the 80STORE switch ($C018)=
OFF = use RAMRD, RAMWRT ON = access display page (*)
CXR = reflects the state of the SLOTCXROM switch ($C015)?
OFF = Slot ROM at $Cx00 ON = Internal ROM at $Cx00 (*)
FThe bottom two lines of window 2 contain the current state of various >
flags and switches. From left to right they are as follows:
EKEY = shows the current ASCII key code (with high bit set) that will ?
=interrupt the ProDev DDT while Tracing or Executing multiple >
instructions. The default setting is $93 which is Control-S.
BRK = indicates if real breaks are present in the target program.4
OUT = no real breaks IN = real breaks exist
ITYP = indicates the type of processor the ProDev DDT is set to recognize 0
when assembling or disassembling instructions.?
02 = 6502 C02 = 65C02 802 = 65802{8} 816 = 65816{16}
SAV = reflects the state of the ProDev DDT's "Text Screen Save" mode.2
ON = screen save on OFF = screen save off
TXT = reflects the state of the TEXT switch ($C01A).=
OFF = text mode off (graphics) ON = text mode on (*)
MIX = reflects the state of the MIXED switch ($C01B).9
OFF = full page graphics ON = mixed txt & gr (*)
HGR = reflects the state of the HIRES switch ($C01D).7
OFF = lo-res graphics ON = hi-res graphics (*)
80C = reflects the state of the 80COL switch ($C01F).;
OFF = 40 column display ON = 80 column display (*)
ALT = reflects the state of the ALTCHARSET switch ($C01E).<
OFF = Apple ][ char set ON = alternate char set (*)
(*) is the state when the switch is greater than 128 ($7F).
WINDOW #3
GThe contents of twelve memory locations are displayed as a hexadecimal J
Hnumber and equivalent ASCII character. The addresses are specified by a 9
two digit bank number followed by a four digit address.
WINDOW #4
IThe current location of the Hardware Breakpoint (if any) is displayed at D
Bthe top of this window followed by the ten most recently accessed L
JBreakpoints. See "HB" & "SB" for a further description of the breakpoint
format.
WINDOW #5
IAn area of the system stack RAM is displayed around the current location 1
of the stack pointer which is indicated by "<".
WINDOW #6
HThis is the effective address window. The actual address that a program E
Cinstruction is referring to is not always obvious. For example LDA F
D($34),Y. When tracing or disassembling instructions, the ProDev DDT L
Jcalculates the effective address and displays its contents in this window L
Jsurrounded by the two locations above and below. The effective address is
indicated by "<".
DThe ASCII equivalent of each locations hexadecimal contents is also
displayed.
I{DDT8} - The current settings of the systems various memory switches are G
Eused to calculate if the address is in main or auxiliary memory. The 6
corresponding bank number (00/ or 01/) is displayed.
WINDOW #7
EThis is the protection window. You may specify three types of memory B
@protection in any of six address ranges. See "PW" for a further
explanation.
STEPPING CODE
HStepping a program is very simple. Let's assume you would like to start L
Jstepping a program beginning at memory location $800. The first thing you J
Hneed to do is set the program counter to point to location $800. You do J
Hthis from the ProDev DDT by using the command "PC=". To set the program 0
counter to $800 you would enter the following:
:PC= 800
<cr> or
PC= $800
<cr> "dollar sign is optional".
BIf you want to see the instruction at location $800, use the "DR" %
command. For example with the DDT8:
<cr>@
A=00 X=00 Y=00 S=E0 M=0A L=0 P=--1----C
<--- displayed6
00/0800:EA NOP
<---
GThe first line of the display contains the contents of the accumulator I
G(A=00), X
index (X=00), Y index (Y=00), stack pointer (S=E0), M pseudo I
Gregister (M=0A), language card condition (L=0) and the status register L
J(P=--1----C). For a detailed description of these registers, refer to the L
J"DR" command in Chapter 5. The second line displayed shows the address of A
?the program counter, including the bank number (00/0800:), the I
Ghexadecimal form of the instruction (EA), and the instruction mnemonic
(NOP).
GTo begin stepping you would use the "ST [N]" command. If you wanted to >
step one instruction and stop you would enter the following:
<cr> or
ST 1
<cr> "One is assumed if no number entered".?
A=00 X=00 Y=00 S=E0 M=0A L=0 P=--1----C
<--- displayed5
00/0801:EA NOP
<---
<--- The new prompt indicates "Trace/Step" mode.
FThe registers displayed reflect any changes caused by the instruction D
Bjust stepped. The new program counter is displayed along with the *
instruction that would be executed next.
GWhen the ProDev DDT is in the "Trace/Step" mode, pressing the "Return" I
Gkey will cause the instruction pointed to by the program counter to be G
Etraced or stepped. The "Trace/Step" mode is disabled by entering any
other command.